<#include "/common/head.ftl">
<@head>

<div class="container">
<div class="alert alert-success" role="alert">只能修改一次,请认真对待,或联系客服</div>
<form >
  <div class="form-group">
    <label for="bankName1">银行名称</label>
    <input type="text" class="form-control" id="bankName1" placeholder="银行名称"  name="bankName" value="${info.bankName!}">
  </div>
  <div class="form-group">
    <label for="bankAddr1">支行名称</label>
    <input type="text" class="form-control" id="bankAddr1" placeholder="支行名称"  name="bankAddr" value="${info.bankAddr!}">
  </div>
  <div class="form-group">
    <label for="bankUser1">收款姓名</label>
    <input type="text" class="form-control" id="bankUser1" placeholder="姓名"  name="bankUser" value="${info.bankUser!}" <#if info.bankUser??>readonly="readonly" </#if> >
          注意:收款姓名只能设置一次.
  </div>
  <div class="form-group">
    <label for="bankCard1">卡号</label>
    <input type="text" class="form-control" id="bankCard1" placeholder="卡号"  name="bankCard" value="${info.bankCard!}">
  </div>
   <button type="submit" class="btn btn-default">确定修改</button>
</form>

 
</div>

    
<@js>
//-------



$("form").submit(function(e){
    e.preventDefault();
	$.post("/api/user/updateBank", $("form").serialize(),function(data){
          console.log(data); //  2pm
         if(data.status==200){
			window.location.href='/';
         }
            alert(data.message);     
         }, "json");
    
});

          
          

</@js>

</@head>